package com.taokatao.cardmee;

/**
 * 事件定义类
 */
public class BusEvent {

    public static final byte TYPE_MAIN_THREAD = 1;


    // 切换用户
    public static final int ACTION_USER_SWITCH = 50;

    // 状态变化 ； 可能退出， 可能登录 ， 可能资料修改
    public static final int USER_PROFILE_INFO_CHANGED = 101;
    // 退出登录
    public static final int USER_LOGOUT = 102;
    // 卡片信息更新
    public static final int CARD_UPDATED = 202;
    // 卡片添加
    public static final int CARD_ADD = 203;
    // 卡片删除
    public static final int CARD_DELETE = 204;
    //卡片拍摄保存文件完成
    public static final int CARD_CAMERA_SAVED = 205;

    //卡片列表刷新[比如web收藏取消收藏]
    public static final int CARD_REFRESH = 206;
    // 卡片刷新完成
    public static final int CARD_REFRESHED = 207;
    // 卡片首页返回顶部
    public static final int CARD_LIST_RETURN_TO_TOP = 221;
    // 系统消息，推送接收到的
    public static final int MESSAGE_SYS_BY_PUSH = 301;

    //   返回首页卡界面
    public static final int WEB_RETURN_TO_HOME_CARD = 5001;

    public int action;
    public byte type;
    public Object content;
    public Object content2;


    public BusEvent(byte type, int action) {
        this.type = type;
        this.action = action;
    }

    public BusEvent(byte type, int action, Object object) {
        this(type, action);
        this.content = object;
    }

    public BusEvent(byte type, int action, Object object, Object object2) {
        this(type, action, object);
        this.content2 = object2;
    }
}
